package com.chushouya.manager.service.admin;


import com.general.framework.core.schema.PageResult;
import com.chushouya.manager.dao.entity.PartnerUserEntity;
import com.chushouya.manager.dto.admin.partner.PartnerUserListDTO;
import com.chushouya.manager.dto.admin.partner.PartnerUserQuery;
import com.chushouya.manager.dto.admin.partner.PartnerUserSaveDTO;
import com.chushouya.manager.dto.admin.user.SimpleAdminUserDTO;

import java.util.List;

/**
 * 商家用户业务
 */
public interface PartnerUserService {

    PageResult<PartnerUserListDTO> selectPageResult(PartnerUserQuery query);


    String add(PartnerUserSaveDTO save);

    String edit(PartnerUserSaveDTO save);

    void updateStatus(Long partnerUserId, Integer status);

    Long savePartnerMasterAccount(PartnerUserSaveDTO partnerUserSave);

    PartnerUserEntity selectByAdminUserId(Long adminUserId);

    PartnerUserEntity selectByPhone(Long partnerId, String phone);

    List<SimpleAdminUserDTO> partnerUser(Long partnerId);

}
